<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>Login</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="<?php echo site_url('css/style_gerenciador.css')?>"/>

		<script type="text/javascript">
			var site_url = '<?php echo site_url(); ?>';
		</script>
		<?php
			if ( isset( $colecaoJS ) )
				foreach ( $colecaoJS as $arquivo ) :
		?>
			<script type="text/javascript" src="<?php echo skinJS( $arquivo ); ?>"></script>
		<?php endforeach; ?>

	</head>

<body>
	<form action="<?php echo site_url( 'gerenciador/validarLogin' ); ?>" method="post" name="frmLogin" id="frmLogin">
		<div class="login" style="margin-top: 10%; text-align: center;">
			<img src="<?= site_url("images/logo.png");?>" alt="" width="180" height="200" />

			<p>
				<img src="<?php echo site_url( 'images/usuario.png' ); ?>" alt="Usuario" title="Usuario"/>
				<?php montaText( 'Email', 'E-mail', 45, 'text' ); ?>
			</p>
			<p>
				<img src="<?php echo site_url( 'images/senha.png' ); ?>" alt="Senha" title="Senha"/>
				<?php montaText( 'Senha', 'Senha', 45, 'password' ); ?>
			</p>
			
			<?php 
				if($erro=='1'){
					echo '<p style="color:red"><b>Usuário e/ou senha inválido!</b></p>';
				}
			?>
			
			<input type="submit" value="Entrar"/>
		</div>
	</form>
</body>
</html>
